package com.meritdata.cloud.data.standard.naming.entity; /***********************************************************************
 * Module:  TD_DATAMASK_RULE.java
 * Author:  Lenovo
 * Purpose: Defines the Class TD_DATAMASK_RULE
 ***********************************************************************/

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/** 命名规范表 */
@Entity
@Table(name = "TD_DATA_STANDARD_NAMING")
@GenericGenerator(name="jpa-uuid",strategy="uuid")
public class TdDataStandardNaming {
	private static final long serialVersionUID = 1L;
	/** ID:ID */
	@Id
	@GeneratedValue
	private Long id;
	/** 规则名称:NAME */
	@Column(name = "NAME")
	private String name;
	/**
	 * 适应对象:APPLY_OBJECT
	 */
	@Column(name = "APPLY_OBJECT")
	private String applyObject;
	/**
	 * 规则内容:RULE_CONTENT
	 */
	@Column(name = "RULE_CONTENT")
	private String ruleContent;
	/**
	 * 名称最大长度:MAX_NAME_LENGTH
	 */
	@Column(name = "MAX_NAME_LENGTH")
	private Integer maxNameLength;
	/**
	 * 备注：REMARK
	 */
	@Column(name = "REMARK")
	private String remark;
	/**
	 * 状态: 0：停用 1：发布 2:草稿
	 */
	@Column(name = "STATUS")
	private Integer status;
	//创建时间:CREATE_TIME
	@Column(name="CREATE_TIME")
	private Date createTime;
	/** 修改时间:UPDATE_TIME */
	@Column(name = "UPDATE_TIME")
	private Date updateTime;
	/** 创建人ID:CREATOR */
	@Column(name = "CREATOR")
	private Long creator;

	public TdDataStandardNaming() {

	}

	public TdDataStandardNaming(String name, String applyObject, String ruleContent, Integer maxNameLength, String remark, Integer status, Date createTime, Date updateTime, Long creator) {
		this.name = name;
		this.applyObject = applyObject;
		this.ruleContent = ruleContent;
		this.maxNameLength = maxNameLength;
		this.remark = remark;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.creator = creator;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getApplyObject() {
		return applyObject;
	}

	public void setApplyObject(String applyObject) {
		this.applyObject = applyObject;
	}

	public String getRuleContent() {
		return ruleContent;
	}

	public void setRuleContent(String ruleContent) {
		this.ruleContent = ruleContent;
	}

	public Integer getMaxNameLength() {
		return maxNameLength;
	}

	public void setMaxNameLength(Integer maxNameLength) {
		this.maxNameLength = maxNameLength;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}
}